#!/usr/bin/env python
# -*- coding:utf-8 -*-
from conn.MySqlFactory import MySqlConfig


class ScheduDb:
    conn = {}
    host = '172.17.0.9'
    user = 'tuut'
    passwd = "tuut"
    db = 'qrtz'
    port = 33069

    def __init__(self, host, user, passwd, db, port):
        self.host = host
        self.user = user
        self.passwd = passwd
        self.db = db
        self.port = port

    @staticmethod
    def get_pool():
        # 连接业务数据库
        ScheduDb.conn = MySqlConfig(host=ScheduDb.host,
                                    user=ScheduDb.user,
                                    passwd=ScheduDb.passwd,
                                    db=ScheduDb.db,
                                    port=ScheduDb.port)
